package com.niit.mall.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.niit.mall.product.domain.po.Category;
import com.niit.mall.product.domain.vo.CategoryVO;
import com.niit.mall.product.mapper.CategoryMapper;
import com.niit.mall.product.service.ICategoryService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.product.service.impl
 * @Author: ChuXuan
 * @CreateTime: 2025-06-08  01:17
 * @Description: 商品分类服务实现类
 * @Version: 1.0
 */
@Service
@RequiredArgsConstructor
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {

    private final CategoryMapper categoryMapper;

    /**
     * 查询所有商品分类VO
     * @return 商品分类VO列表
     */
    @Override
    public List<CategoryVO> queryCategoryVO() {
        return categoryMapper.queryCategoryVO();
    }


}
